﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;

namespace SimpleClient
{
    class Home
    {

        private int hp;
        public int xMin;
        public int yMin;
        public int xMax;
        public int yMax;
        public Point Position;
        private int Width;
        private int Height;
        public Home(Point p, int hp)
        {
            Position = p;
            this.hp = hp;
            Width = 15;
            Height = 15;
            xMin = p.X;
            yMin = p.Y;
            xMax = xMin + 15;
            yMax = yMin + 15;
        }
        public void Display(Graphics g)
        {
            
            SolidBrush b = new SolidBrush(Color.Red); //定义红色画刷
            g.FillRectangle(b, Position.X, Position.Y, Height, Width); //画实心矩形
        }
        public void UpDate(Graphics g)
        {
            SolidBrush b = new SolidBrush(Color.Red); //定义红色画刷
            g.FillRectangle(b, Position.X, Position.Y, Height, Width); //画实心矩形
        }
        public void UnDisplay(Graphics g)
        {
            SolidBrush b = new SolidBrush(Color.Silver); //定义银色画刷
            g.FillRectangle(b, Position.X, Position.Y, Height, Width); //画实心矩形
        }

    }
}
